#!/bin/env python
# -*- coding:utf-8 -*-
import sys
from time import sleep
x = str(input("请输入类型(字符)："))
def slow(msg,text):
    print (msg),
    for i in text:
        print ("\033[31m"+i+"\033[0m",end=''),
        sys.stdout.flush()
        sleep(0.3)
    return text
slow('loginning',x)